package name.wilbur.course.db.bigone.model;
/**
 * @author wilbur
 */
public class GroupUser extends BaseDBModel {
	private int groupID;
	private int userID;
	
	public GroupUser() {
	}

	public GroupUser(int groupID, int userID) {
		super();
		this.groupID = groupID;
		this.userID = userID;
	}

	public int getGroupID() {
		return groupID;
	}

	public void setGroupID(int groupID) {
		this.groupID = groupID;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + groupID;
		result = prime * result + userID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		GroupUser other = (GroupUser) obj;
		if (groupID != other.groupID)
			return false;
		if (userID != other.userID)
			return false;
		return true;
	}

}
